<div class="operateBox">
  <div id="p_toolbar"></div><?php $this->loadTemplate('toolbar-save');?>
  <h2><?php echo $this->title?></h2>
</div>

<form id="form1"  name="form1" method="post" action="" class="post-tr" >
  <input type="hidden" id="data_id" name="data_id" value="<?php echo $data['id'];?>" />

  <div class="sh">名称：</div>
  <div class="sp"><input name="data[name]" type="text" value="<?php e_h($data['name']);?>" maxlength="50" /></div>
  <div class="sh">排序：</div>
  <div class="sp"><input name="data[ordering]" type="text" size="3" value="<?php echo $data['ordering'];?>" /></div>
  <div class="sh">父类：</div>
  <div class="sp"><input name="data[parent_id]" type="text" value="<?php e_h($data['parent_id']);?>" id="d_parentID" size="5" /><a class="p-browseBut" onClick="w_open(c_U+ '-fselect&setObj=d_parentID',null,300)"><?php lang::_g('select');?></a></div>

  <div class="sh">描述：</div>
  <div class="sp"><textarea name="data[description]" rows="2"><?php e_h($data['description']);?></textarea></div>  
  <div class="sh">布局：</div>
  <div class="sp"><?php html::selectR('name="data[layout_id]"', YF_f::initC('\c\layout\g')->li('sort'), $data['layout_id'], lang::g('default'));?></div>
  
  <div class="sh">CSS类：</div>
  <div class="sp"><input name="data[css_class]" type="text" value="<?php e_h($data['css_class']);?>" maxlength="20"  /></div>
  <div class="sh">缩略图：</div>
  <div class="sp"><input name="data[pic]" type="text" value="<?php e_h($data['pic']);?>" id="p_pic" />
                   <a class="p-browseBut" onclick="openFileWin('set_obj=p_pic&set_val=id');"><?php lang::_g('browse')?></a></div>

  <div class="separator"></div>
  <div class="sh">状态：</div>
  <div class="sp"><?php html::radio('name="data[state]"', lang::Ag($this->State), $data['state']); ?></div> 
  <div class="cl_l"></div>
</form>